<template>
  <ScriptSetup :num="num" @fun="fun" ref="son" cao="cao">
  <template v-slot>
    <div>slot</div>
  </template>
  </ScriptSetup>
</template>

<script setup>
import { onMounted, ref } from 'vue';
import ScriptSetup from './index.vue';
let num = ref(0)
const son = ref(null)
const fun = (v) => {
  num.value++
}
onMounted(() => {
  console.log(son.value)
})

</script>

<style>
</style>